
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>初识 VueCli 3 · 《前端学习笔记》</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="XiaoChen">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-pageview-count/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-ancre-navigation/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="使用 VueCli 3.html" />
    
    
    <link rel="prev" href="Vue 项目搭建.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        <li class="header">前言</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Android</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../Android/Android 多包名打包应用.html">
            
                <a href="../Android/Android 多包名打包应用.html">
            
                    
                    Android 多包名打包应用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../Android/Android UI美化之 shape的使用及其属性总结.html">
            
                <a href="../Android/Android UI美化之 shape的使用及其属性总结.html">
            
                    
                    Android UI美化之 shape的使用及其属性总结
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">ReactNative</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../ReactNative/CodePush 热更新配置及使用.html">
            
                <a href="../ReactNative/CodePush 热更新配置及使用.html">
            
                    
                    CodePush 热更新配置及使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="../ReactNative/已有Android工程 集成React Native.html">
            
                <a href="../ReactNative/已有Android工程 集成React Native.html">
            
                    
                    已有Android工程 集成React Native
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Egret</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../Egret/Egret 白鹭引擎参考资料.html">
            
                <a href="../Egret/Egret 白鹭引擎参考资料.html">
            
                    
                    Egret 白鹭引擎参考资料
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="../Egret/EGER PRO.html">
            
                <a href="../Egret/EGER PRO.html">
            
                    
                    EGER PRO
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="../Egret/Egret 寻路.html">
            
                <a href="../Egret/Egret 寻路.html">
            
                    
                    Egret 寻路
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">工具</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="../Tools/homebrew 使用.html">
            
                <a href="../Tools/homebrew 使用.html">
            
                    
                    homebrew 使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="../Tools/git 使用.html">
            
                <a href="../Tools/git 使用.html">
            
                    
                    git 使用
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">小程序</li>
        
        
    
        <li class="chapter " data-level="6.1" data-path="../MiniApp/Atom 完美支持 WePY 小程序开发.html">
            
                <a href="../MiniApp/Atom 完美支持 WePY 小程序开发.html">
            
                    
                    Atom 完美支持 WePY 小程序开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2" data-path="../MiniApp/Atom 插件安装慢解决方案.html">
            
                <a href="../MiniApp/Atom 插件安装慢解决方案.html">
            
                    
                    Atom 插件安装慢解决方案
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Vue</li>
        
        
    
        <li class="chapter " data-level="7.1" data-path="Web 前端环境搭建.html">
            
                <a href="Web 前端环境搭建.html">
            
                    
                    Web 前端环境搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.2" data-path="Vue 项目搭建.html">
            
                <a href="Vue 项目搭建.html">
            
                    
                    Vue 项目搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="7.3" data-path="初识 VueCli 3.html">
            
                <a href="初识 VueCli 3.html">
            
                    
                    初识 VueCli 3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.4" data-path="使用 VueCli 3.html">
            
                <a href="使用 VueCli 3.html">
            
                    
                    使用 VueCli 3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.5" data-path="VueCli 3 项目配置.html">
            
                <a href="VueCli 3 项目配置.html">
            
                    
                    VueCli 3 项目配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.6" data-path="../Vue3/Vue3探索.html">
            
                <a href="../Vue3/Vue3探索.html">
            
                    
                    初识 Vue3
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">微前端</li>
        
        
    
        <li class="chapter " data-level="8.1" data-path="../MicroApp/qiankun/">
            
                <a href="../MicroApp/qiankun/">
            
                    
                    qiankun
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">团队成长</li>
        
        
    
        <li class="chapter " data-level="9.1" data-path="../Team/Web前端开发规范.html">
            
                <a href="../Team/Web前端开发规范.html">
            
                    
                    开发规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.2" data-path="../Team/Web团队建设--npm私库搭建.html">
            
                <a href="../Team/Web团队建设--npm私库搭建.html">
            
                    
                    私库搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.3" data-path="../Team/Web团队建设--自定义脚手架.html">
            
                <a href="../Team/Web团队建设--自定义脚手架.html">
            
                    
                    脚手架搭建
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >初识 VueCli 3</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-anchor"></i><ul><li><span class="title-icon "></span><a href="#vue-&#x5B66;&#x4E60;&#x7B14;&#x8BB0;-&#x4E00;----&#x521D;&#x8BC6;-vuecli-3"><b></b>Vue &#x5B66;&#x4E60;&#x7B14;&#x8BB0; (&#x4E00;) -- &#x521D;&#x8BC6; VueCli 3</a></li><ul><li><span class="title-icon "></span><a href="#&#x7B80;&#x4ECB;"><b></b>&#x7B80;&#x4ECB;</a></li><li><span class="title-icon "></span><a href="#&#x65B0;&#x7279;&#x6027;"><b></b>&#x65B0;&#x7279;&#x6027;</a></li><ul><li><span class="title-icon "></span><a href="#&#x4F7F;&#x7528;&#x547D;&#x4EE4;&#x7684;&#x53D8;&#x5316;"><b></b>&#x4F7F;&#x7528;&#x547D;&#x4EE4;&#x7684;&#x53D8;&#x5316;</a></li><li><span class="title-icon "></span><a href="#&#x9879;&#x76EE;&#x7ED3;&#x6784;&#x53D8;&#x5316;"><b></b>&#x9879;&#x76EE;&#x7ED3;&#x6784;&#x53D8;&#x5316;</a></li><li><span class="title-icon "></span><a href="#&#x9879;&#x76EE;&#x914D;&#x7F6E;&#x9009;&#x9879;&#x7684;&#x53D8;&#x5316;"><b></b>&#x9879;&#x76EE;&#x914D;&#x7F6E;&#x9009;&#x9879;&#x7684;&#x53D8;&#x5316;</a></li><li><span class="title-icon "></span><a href="#&#x652F;&#x6301;&#x66F4;&#x591A;&#x65B0;&#x529F;&#x80FD;"><b></b>&#x652F;&#x6301;&#x66F4;&#x591A;&#x65B0;&#x529F;&#x80FD;</a></li></ul></ul></ul></div><a href="#vue-&#x5B66;&#x4E60;&#x7B14;&#x8BB0;-&#x4E00;----&#x521D;&#x8BC6;-vuecli-3" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="vue-&#x5B66;&#x4E60;&#x7B14;&#x8BB0;-&#x4E00;----&#x521D;&#x8BC6;-vuecli-3"><a name="vue-&#x5B66;&#x4E60;&#x7B14;&#x8BB0;-&#x4E00;----&#x521D;&#x8BC6;-vuecli-3" class="anchor-navigation-ex-anchor" href="#vue-&#x5B66;&#x4E60;&#x7B14;&#x8BB0;-&#x4E00;----&#x521D;&#x8BC6;-vuecli-3"><i class="fa fa-link" aria-hidden="true"></i></a>Vue &#x5B66;&#x4E60;&#x7B14;&#x8BB0; (&#x4E00;) -- &#x521D;&#x8BC6; VueCli 3</h1>
<h2 id="&#x7B80;&#x4ECB;"><a name="&#x7B80;&#x4ECB;" class="anchor-navigation-ex-anchor" href="#&#x7B80;&#x4ECB;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x7B80;&#x4ECB;</h2>
<p>&#x63A5;&#x89E6; <code>Vue</code> &#x5DF2;&#x7ECF;&#x6709;&#x4E00;&#x6BB5;&#x65F6;&#x95F4;&#x4E86;&#xFF0C;&#x4E4B;&#x524D;&#x505A;&#x9879;&#x76EE;&#x90FD;&#x662F;&#x5957;&#x7528;&#x81EA;&#x5DF1;&#x4E4B;&#x524D;&#x914D;&#x7F6E;&#x597D;&#x7684;&#x9879;&#x76EE;&#x6A21;&#x677F;&#xFF0C;&#x6700;&#x8FD1;&#x7A81;&#x53D1;&#x5947;&#x60F3;&#x60F3;&#x8981;&#x518D;&#x91CD;&#x65B0;&#x914D;&#x7F6E;&#x4E00;&#x4E0B;&#x9879;&#x76EE;&#xFF0C;&#x7136;&#x800C;&#x3002;&#x3002;&#x3002;</p>
<pre><code>zengqingdeMacBook-Pro:Vue zengqing$ vue init webpack hello-world

Command vue init requires a global addon to be installed.
Please run npm install -g @vue/cli-init and try again.

zengqingdeMacBook-Pro:Vue zengqing$
</code></pre><p>&#x4E4B;&#x524D;&#x7684; <code>vue init</code> &#x521B;&#x5EFA;&#x547D;&#x4EE4;&#x4E0D;&#x80FD;&#x7528;&#x4E86;&#x6709;&#x6728;&#x6709;&#xFF0C;&#x7136;&#x540E;&#x60F3;&#x5230;&#x4E4B;&#x524D;&#x66F4;&#x65B0;&#x4E86;&#x4E00;&#x6CE2;&#x811A;&#x624B;&#x67B6;&#xFF0C;&#x7136;&#x540E;&#x8D76;&#x7D27;&#x7FFB;&#x770B;&#x4E00;&#x4E0B; <a href="https://cli.vuejs.org/zh/" target="_blank">Vue Cli &#x5B98;&#x65B9;&#x6587;&#x6863;</a> &#x7136;&#x540E;&#x53D1;&#x73B0;&#x753B;&#x98CE;&#x5DF2;&#x7ECF;&#x662F;&#x53D8;&#x6210;&#x8FD9;&#x4E2A;&#x6837;&#x5B50;&#x7684;&#x4E86;</p>
<p><img src="https://upload-images.jianshu.io/upload_images/2389712-e8d86fca9d6e4667.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt=""></p>
<p>&#x539F;&#x6765;&#x5DF2;&#x7ECF;&#x5347;&#x7EA7;&#x5230;&#x4E86; <code>3.xx</code> &#x7248;&#x672C;&#x7684;&#x4E86;&#xFF0C;&#x90A3;&#x4E48;&#x6211;&#x4EEC;&#x5C31;&#x6765;&#x5B66;&#x4E60;&#x4E00;&#x4E0B; <code>Vue Cli 3</code> &#x7684;&#x65B0;&#x4E1C;&#x897F;&#x5427;&#x3002;</p>
<h2 id="&#x65B0;&#x7279;&#x6027;"><a name="&#x65B0;&#x7279;&#x6027;" class="anchor-navigation-ex-anchor" href="#&#x65B0;&#x7279;&#x6027;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x65B0;&#x7279;&#x6027;</h2>
<p>&#x6574;&#x7406;&#x6536;&#x96C6;&#x4E86;&#x4E00;&#x4E9B; <code>Vue Cli 3</code> &#x7684;&#x65B0;&#x7279;&#x6027;&#xFF0C;&#x603B;&#x7ED3;&#x5982;&#x4E0B;&#xFF1A;</p>
<ul>
<li>&#x4F7F;&#x7528;&#x547D;&#x4EE4;&#x7684;&#x53D8;&#x5316;</li>
<li>&#x9879;&#x76EE;&#x7ED3;&#x6784;&#x53D8;&#x5316;</li>
<li>&#x9879;&#x76EE;&#x914D;&#x7F6E;&#x9009;&#x9879;&#x7684;&#x53D8;&#x5316;</li>
<li>&#x652F;&#x6301;&#x66F4;&#x591A;&#x65B0;&#x529F;&#x80FD;</li>
</ul>
<blockquote>
<p>&#x4EE5;&#x4E0A;&#x7EAF;&#x5C5E;&#x4E2A;&#x4EBA;&#x89C2;&#x70B9;&#xFF0C;&#x4EC5;&#x4F9B;&#x53C2;&#x8003;&#x3002;</p>
</blockquote>
<h3 id="&#x4F7F;&#x7528;&#x547D;&#x4EE4;&#x7684;&#x53D8;&#x5316;"><a name="&#x4F7F;&#x7528;&#x547D;&#x4EE4;&#x7684;&#x53D8;&#x5316;" class="anchor-navigation-ex-anchor" href="#&#x4F7F;&#x7528;&#x547D;&#x4EE4;&#x7684;&#x53D8;&#x5316;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4F7F;&#x7528;&#x547D;&#x4EE4;&#x7684;&#x53D8;&#x5316;</h3>
<p>&#x8BE5;&#x65B9;&#x9762;&#x4E3B;&#x8981;&#x4F53;&#x73B0;&#x5728;&#x521B;&#x5EFA;&#x9879;&#x76EE;&#x4E0A;&#x9762;&#xFF0C;&#x5C31;&#x50CF;&#x521A;&#x5F00;&#x59CB;&#x8BF4;&#x7684;&#x90A3;&#x6837; <code>vue init webpack hello-world</code> &#x5DF2;&#x7ECF;&#x66FF;&#x6362;&#x4E3A; <code>vue create hello-world</code>&#x3002;</p>
<blockquote>
<p>&#x5B98;&#x65B9;&#x6587;&#x6863;&#x4E0A;&#x8BF4; <code>Vue CLI 2</code> &#x662F;&#x88AB; <code>Vue CLI 3</code> &#x8986;&#x76D6;&#x7684;&#x3002;&#x5982;&#x679C;&#x4F60;&#x4ECD;&#x7136;&#x9700;&#x8981;&#x4F7F;&#x7528;&#x65E7;&#x7248;&#x672C;&#x7684; <code>vue init</code> &#x529F;&#x80FD;&#x8FD8;&#x662F;&#x53EF;&#x4EE5;&#x5B9E;&#x73B0;&#x7684;&#xFF0C;&#x53EA;&#x9700;&#x8981;&#x4F7F;&#x7528;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;&#xFF1A;</p>
</blockquote>
<pre><code>npm install -g @vue/cli-init
# `vue init` &#x7684;&#x8FD0;&#x884C;&#x6548;&#x679C;&#x5C06;&#x4F1A;&#x8DDF; `vue-cli@2.x` &#x76F8;&#x540C;
vue init webpack my-project
</code></pre><p>&#x5177;&#x4F53;&#x521B;&#x5EFA;&#x9879;&#x76EE;&#x547D;&#x4EE4;&#x7684;&#x4ECB;&#x7ECD;&#x4F1A;&#x653E;&#x5728;&#x4E0B;&#x4E00;&#x7BC7;&#x6587;&#x7AE0;&#x518D;&#x804A;&#xFF0C;&#x6B64;&#x5904;&#x4EC5;&#x505A;&#x4ECB;&#x7ECD;</p>
<h3 id="&#x9879;&#x76EE;&#x7ED3;&#x6784;&#x53D8;&#x5316;"><a name="&#x9879;&#x76EE;&#x7ED3;&#x6784;&#x53D8;&#x5316;" class="anchor-navigation-ex-anchor" href="#&#x9879;&#x76EE;&#x7ED3;&#x6784;&#x53D8;&#x5316;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x9879;&#x76EE;&#x7ED3;&#x6784;&#x53D8;&#x5316;</h3>
<p>&#x5148;&#x4E0A; <code>2.x</code> &#x7248;&#x672C;&#x9879;&#x76EE;&#x7ED3;&#x6784;</p>
<pre><code>.
&#x251C;&#x2500;&#x2500; README.md
&#x251C;&#x2500;&#x2500; build
&#x2502;   &#x251C;&#x2500;&#x2500; build-preview.js
&#x2502;   &#x251C;&#x2500;&#x2500; build.js
&#x2502;   &#x251C;&#x2500;&#x2500; check-versions.js
&#x2502;   &#x251C;&#x2500;&#x2500; logo.png
&#x2502;   &#x251C;&#x2500;&#x2500; utils.js
&#x2502;   &#x251C;&#x2500;&#x2500; vue-loader.conf.js
&#x2502;   &#x251C;&#x2500;&#x2500; webpack.base.conf.js
&#x2502;   &#x251C;&#x2500;&#x2500; webpack.dev.conf.js
&#x2502;   &#x251C;&#x2500;&#x2500; webpack.prev.conf.js
&#x2502;   &#x2514;&#x2500;&#x2500; webpack.prod.conf.js
&#x251C;&#x2500;&#x2500; config
&#x2502;   &#x251C;&#x2500;&#x2500; dev.env.js
&#x2502;   &#x251C;&#x2500;&#x2500; index.js
&#x2502;   &#x251C;&#x2500;&#x2500; preview.env.js
&#x2502;   &#x2514;&#x2500;&#x2500; prod.env.js
&#x251C;&#x2500;&#x2500; index.html
&#x251C;&#x2500;&#x2500; package-lock.json
&#x251C;&#x2500;&#x2500; package.json
&#x251C;&#x2500;&#x2500; src
&#x2502;   &#x251C;&#x2500;&#x2500; App.vue
&#x2502;   &#x251C;&#x2500;&#x2500; assets
&#x2502;   &#x251C;&#x2500;&#x2500; components
&#x2502;   &#x251C;&#x2500;&#x2500; main.js
&#x2502;   &#x251C;&#x2500;&#x2500; router
&#x2502;   &#x251C;&#x2500;&#x2500; style
&#x2502;   &#x2514;&#x2500;&#x2500; utils
&#x2514;&#x2500;&#x2500; static
&#x2514;&#x2500;&#x2500; background.mp3
</code></pre><p>&#x4E0B;&#x9762;&#x662F;&#x65B0;&#x7248;&#x672C;&#x811A;&#x624B;&#x67B6;&#x751F;&#x6210;&#x7684;&#x9879;&#x76EE;&#x7ED3;&#x6784;</p>
<pre><code>.
&#x251C;&#x2500;&#x2500; README.md
&#x251C;&#x2500;&#x2500; babel.config.js
&#x251C;&#x2500;&#x2500; package-lock.json
&#x251C;&#x2500;&#x2500; package.json
&#x251C;&#x2500;&#x2500; public
&#x2502;   &#x251C;&#x2500;&#x2500; favicon.ico
&#x2502;   &#x2514;&#x2500;&#x2500; index.html
&#x2514;&#x2500;&#x2500; src
&#x251C;&#x2500;&#x2500; App.vue
&#x251C;&#x2500;&#x2500; assets
&#x251C;&#x2500;&#x2500; components
&#x251C;&#x2500;&#x2500; main.js
&#x251C;&#x2500;&#x2500; router.js
&#x2514;&#x2500;&#x2500; views
</code></pre><p>&#x53EF;&#x4EE5;&#x770B;&#x51FA;&#x65B0;&#x7248;&#x672C;&#x7684;&#x811A;&#x624B;&#x67B6;&#x5DE5;&#x5177;&#x751F;&#x6210;&#x7684;&#x9879;&#x76EE;&#x662F;&#x6781;&#x5176;&#x7684;&#x7B80;&#x6D01;&#x4E86;&#x3002;</p>
<ul>
<li>&#x79FB;&#x9664;&#x4E86;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x76EE;&#x5F55;&#xFF0C;<code>config</code> &#x548C; <code>build</code> &#x6587;&#x4EF6;&#x5939;&#x3002;</li>
<li>&#x79FB;&#x9664;&#x4E86; <code>static</code> &#x6587;&#x4EF6;&#x5939;&#xFF0C;&#x65B0;&#x589E; <code>public</code> &#x6587;&#x4EF6;&#x5939;&#xFF0C;&#x5E76;&#x4E14; <code>index.html</code> &#x79FB;&#x52A8;&#x5230; <code>public</code> &#x4E2D;&#x3002;
&#x5728; <code>src</code> &#x6587;&#x4EF6;&#x5939;&#x4E2D;&#x65B0;&#x589E;&#x4E86; <code>views</code> &#x6587;&#x4EF6;&#x5939;&#xFF0C;&#x7528;&#x4E8E;&#x5206;&#x7C7B; &#x89C6;&#x56FE;&#x7EC4;&#x4EF6; &#x548C; &#x516C;&#x5171;&#x7EC4;&#x4EF6;&#x3002;</li>
</ul>
<h3 id="&#x9879;&#x76EE;&#x914D;&#x7F6E;&#x9009;&#x9879;&#x7684;&#x53D8;&#x5316;"><a name="&#x9879;&#x76EE;&#x914D;&#x7F6E;&#x9009;&#x9879;&#x7684;&#x53D8;&#x5316;" class="anchor-navigation-ex-anchor" href="#&#x9879;&#x76EE;&#x914D;&#x7F6E;&#x9009;&#x9879;&#x7684;&#x53D8;&#x5316;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x9879;&#x76EE;&#x914D;&#x7F6E;&#x9009;&#x9879;&#x7684;&#x53D8;&#x5316;</h3>
<p>&#x60F3;&#x5FC5;&#x5927;&#x5BB6;&#x90FD;&#x77E5;&#x9053;&#x5728; <code>2.0</code> &#x7248;&#x672C;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x8981;&#x4FEE;&#x6539;&#x9879;&#x76EE;&#x914D;&#x7F6E;&#x53EF;&#x4EE5;&#x5728; <code>build</code> &#x548C; <code>config</code> &#x76EE;&#x5F55;&#x4E0B;&#x8FDB;&#x884C;&#x4FEE;&#x6539;&#xFF0C;&#x7136;&#x800C;&#x5728; <code>3.0</code> &#x4E2D;&#x8FD9;&#x4E24;&#x4E2A;&#x6587;&#x4EF6;&#x5939;&#x90FD;&#x5DF2;&#x7ECF;&#x79FB;&#x9664;&#x4E86;&#xFF0C;&#x90A3;&#x4E48;&#x65B0;&#x7248;&#x672C;&#x7684;&#x914D;&#x7F6E;&#x5E94;&#x8BE5;&#x5728;&#x54EA;&#x91CC;&#x8BBE;&#x7F6E;&#x5462;&#xFF1F;&#x5176;&#x5B9E;&#x4E5F;&#x5F88;&#x7B80;&#x5355;&#xFF0C;&#x53EA;&#x9700;&#x8981;&#x5728;&#x9879;&#x76EE;&#x6839;&#x76EE;&#x5F55;&#x4E0B;&#x65B0;&#x5EFA;&#x4E00;&#x4E2A; <code>vue.config.js</code> &#x6587;&#x4EF6;&#x7136;&#x540E;&#x5728;&#x91CC;&#x9762;&#x5199;&#x9879;&#x76EE;&#x6240;&#x9700;&#x914D;&#x7F6E;&#x5C31;&#x53EF;&#x4EE5;&#x4E86;&#x3002;</p>
<blockquote>
<p>&#x5177;&#x4F53;&#x914D;&#x7F6E;&#x65B9;&#x6CD5;&#x4F1A;&#x5728;&#x540E;&#x7EED;&#x6587;&#x7AE0;&#x4E2D;&#x7ED9;&#x51FA;</p>
</blockquote>
<h3 id="&#x652F;&#x6301;&#x66F4;&#x591A;&#x65B0;&#x529F;&#x80FD;"><a name="&#x652F;&#x6301;&#x66F4;&#x591A;&#x65B0;&#x529F;&#x80FD;" class="anchor-navigation-ex-anchor" href="#&#x652F;&#x6301;&#x66F4;&#x591A;&#x65B0;&#x529F;&#x80FD;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x652F;&#x6301;&#x66F4;&#x591A;&#x65B0;&#x529F;&#x80FD;</h3>
<p>&#x5728;&#x65B0;&#x7248;&#x672C;&#x7684;&#x811A;&#x624B;&#x67B6;&#x4E2D;&#x521B;&#x5EFA;&#x9879;&#x76EE;&#x7684;&#x65F6;&#x5019;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x65B0;&#x589E;&#x4E86;&#x5BF9; <code>TypeScript</code> &#x4E0E; <code>PWA</code> &#x7684;&#x652F;&#x6301;</p>
<p>&#x66F4;&#x591A;&#x6587;&#x7AE0;&#x53EF;&#x67E5;&#x770B; <a href="http://zengqing.top" target="_blank">&#x6211;&#x7684;&#x535A;&#x5BA2;</a></p>
<footer class="page-footer"><span class="copyright">Copyright &amp; copy zengqing.top 2023 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x66F4;&#x65B0;&#x4E8E;&#xFF1A;
2023-03-25 20:28:31
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="Vue 项目搭建.html" class="navigation navigation-prev " aria-label="Previous page: Vue 项目搭建">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="使用 VueCli 3.html" class="navigation navigation-next " aria-label="Next page: 使用 VueCli 3">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"初识 VueCli 3","level":"7.3","depth":1,"next":{"title":"使用 VueCli 3","level":"7.4","depth":1,"path":"Vue2/使用 VueCli 3.md","ref":"./Vue2/使用 VueCli 3.md","articles":[]},"previous":{"title":"Vue 项目搭建","level":"7.2","depth":1,"path":"Vue2/Vue 项目搭建.md","ref":"./Vue2/Vue 项目搭建.md","articles":[]},"dir":"ltr"},"config":{"plugins":["expandable-chapters","code","pageview-count","chapter-fold","expandable-chapters-small","tbfed-pagefooter","hide-element","ancre-navigation"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright & copy zengqing.top 2023","modify_label":"该文件更新于：","modify_format":"YYYY-MM-DD HH:mm:ss"},"chapter-fold":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"hide-element":{"elements":[".gitbook-link"]},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"pageview-count":{},"ancre-navigation":{"showLevel":true,"associatedWithSummary":true,"mode":"float","printLog":false,"multipleH1":true,"float":{"showLevelIcon":false,"level1Icon":"","level2Icon":"","level3Icon":""},"pageTop":{"showLevelIcon":false,"level1Icon":"","level2Icon":"","level3Icon":""}},"expandable-chapters-small":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"theme":"default","author":"XiaoChen","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"《前端学习笔记》","language":"zh-hans","gitbook":"*","description":"个人学习笔记，记录学习过程中的点点滴滴"},"file":{"path":"Vue2/初识 VueCli 3.md","mtime":"2023-03-25T12:28:31.152Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-03-26T04:06:26.355Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-hide-element/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

